﻿using GWB.Application.System.OrgManage.Dtos;
using GWB.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GWB.Application.System.OrgManage.OrgService
{
    public interface IOrgService
    {
        /// <summary>
        ///新增
        /// </summary>
        /// <param name="inputDto"></param>
        /// <returns></returns>
        Task<Result<OrgOutDto>> Add(OrgCreateOrUpdateInputDto inputDto);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="inputDto"></param>
        /// <returns></returns>
        Task<bool> Update(OrgCreateOrUpdateInputDto inputDto);


        /// <summary>
        /// 删除菜单
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<bool> Delete(List<long> ids);

        /// <summary>
        /// 获取组织树
        /// </summary>
        /// <returns></returns>
        Task<List<OrgTreeOutDto>> GetOrgTree();
    }
}
